package Oop.ooptest.test05;

public class Animal {
    //设置公有属性
    String color;
    int age;

    public void eat(){
        System.out.println("颜色为"+color+"年龄为"+age+"在吃");

    }
    public void run(){
        System.out.println("颜色为"+color+"年龄为"+age+"在吃");
    }
}
